<!DOCTYPE html>
<html>
<head>
<style>
#grad1 {
  height: 200px;
  
  background-image: linear-gradient(to right, red , yellow);
}
</style>
</head>
<body>

<h1>线性渐变 - 从左到右</h1>
<p>此线性渐变从左开始为红色，然后过渡到黄色（向右）：</p>

<div id="grad1"></div>

</body>
</html>
